package org.september.pisces.led.entity;


import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import org.september.smartdao.anno.AutoIncrease;
import org.september.smartdao.anno.Entity;
import org.september.smartdao.anno.Id;

import java.util.ArrayList;
import java.util.List;


/**
 * led  素材库,一个节目
 */
@Entity
@Table(name = "led_flash")
@Data
public class LedFlash {

    @Id
    @AutoIncrease
    @IsKey
    @IsAutoIncrement
    @Column(value = "id", length = 20)
    private Long id;

    @Column(value = "flash_name", comment = "节目名称", length = 64)
    private String flashName;

    @Column(value = "wait_time", comment = "播放时长", length = 32)
    private Integer waitTime;


    @Column(value = "x", type = MySqlTypeConstant.INT, comment = "是否启用,1启0关")
    private Integer x;
    @Column(value = "y", type = MySqlTypeConstant.INT, comment = "是否启用,1启0关")
    private Integer y;
    @Column(value = "w", type = MySqlTypeConstant.INT, comment = "是否启用,1启0关")
    private Integer w;
    @Column(value = "h", type = MySqlTypeConstant.INT, comment = "是否启用,1启0关")
    private Integer h;


    private transient List<LedArea> areas = new ArrayList<>();

}
